package cdu.sl.mapper;

import cdu.sl.annotation.AutoFill;
import cdu.sl.common.enums.OperationType;
import cdu.sl.domain.po.User;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

public interface UserMapper extends BaseMapper<User> {

    @AutoFill(OperationType.INSERT)
    int insert(User entity);

    @AutoFill(OperationType.UPDATE)
    int update(@Param("et") User entity, @Param("ew") Wrapper<User> updateWrapper);
}
